/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.facade;/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2019/1/2 10:54
 * Update Date Time:
 */

public class Facade {
    SubSystemOne subSystemOne;
    SubSystemThree subSystemThree;
    SubSystemTwo subSystemTwo;
    SubSystemFour subSystemFour;

    public Facade() {
        this.subSystemThree = new SubSystemThree();
        this.subSystemFour = new SubSystemFour();
        this.subSystemTwo = new SubSystemTwo();
        this.subSystemOne = new SubSystemOne();
    }
    public void methodA(){
        System.out.println("方法组A:");

        subSystemOne.methodOne();
        subSystemTwo.methodTwo();
        subSystemFour.methodFour();
    }
    public void methodB(){
        System.out.println("方法组B:");

        subSystemThree.methodThree();
        subSystemFour.methodFour();
    }
}
